package cn.edu.neu.studentmsg_java.service.impl;

import cn.edu.neu.studentmsg_java.dao.MajorDao;
import cn.edu.neu.studentmsg_java.service.MajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajorServiceImpl implements MajorService {
    @Autowired
    private MajorDao majorDao;
    @Override
    public List<String> findMajorName() {
        return majorDao.selectMajorName();
    }
}
